package com.itheima.innerclass;

public class Outer2 {

    public String name = "外部类名";
    public static class Inner{
        public String name = "内部类名";
        public static int num = 10;
        public void method()
        {
            System.out.println("内部类方法");
        }
        public void show()
        {
            System.out.println("外部类名：" + num);
            System.out.println("内部类名：" + this.name);
            //不能直接访问外部类的实例成员
        }
    }
}
